Annotate more functions returning GListModel
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 27 Apr 2020 13:46:23 +0000 (14:46 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 28 Apr 2020 12:31:59 +0000 (13:31 +0100)
Now that we can have an element-type annotation, we should use it where
needed.

gtk/gtkassistant.c
gtk/gtkconstraintlayout.c
gtk/gtknotebook.c
gtk/gtkwidget.c

index 91e9dcfef70dcfc4ca0141b9d1209fa58fe35988..c0b00dbf8fe297270134d99b5720cb0f43fef764 100644 (file)
@@ -2481,7 +2481,7 @@ gtk_assistant_pages_new (GtkAssistant *assistant)
  * 
  * Gets a list model of the assistant pages.
  *
- * Returns: (transfer full): A list model of the pages.
+ * Returns: (transfer full) (attributes element-type=GtkAssistantPage): A list model of the pages.
  */
 GListModel *
 gtk_assistant_get_pages (GtkAssistant *assistant)
index 7f012da0c613693d11143bd4bd7835bf2af5fffe..91f1e13c031bd52a0b59cceec8fa60d457c6976a 100644 (file)
@@ -2172,8 +2172,8 @@ gtk_constraint_layout_add_constraints_from_description (GtkConstraintLayout *lay
  * Applications should try hard to avoid calling this function
  * because of the slowdowns.
  *
- * Returns: (transfer full): a #GListModel tracking @layout's
- *     constraints 
+ * Returns: (transfer full) (attributes element-type=GtkConstraint): a
+ *   #GListModel tracking @layout's constraints
  */
 GListModel *
 gtk_constraint_layout_observe_constraints (GtkConstraintLayout *layout)
@@ -2212,8 +2212,8 @@ gtk_constraint_layout_observe_constraints (GtkConstraintLayout *layout)
  * Applications should try hard to avoid calling this function
  * because of the slowdowns.
  *
- * Returns: (transfer full): a #GListModel tracking @layout's
- *     guides
+ * Returns: (transfer full) (attributes element-type=GtkConstraintGuide): a
+ *   #GListModel tracking @layout's guides
  */
 GListModel *
 gtk_constraint_layout_observe_guides (GtkConstraintLayout *layout)
index 3a22d028c86fb20b8eaf76e778a4e00954dee8f7..a594e7974d46c71997b1a3103c61f3e51772d537 100644 (file)
@@ -7190,7 +7190,8 @@ gtk_notebook_pages_new (GtkNotebook *notebook)
  * Returns a #GListModel that contains the pages of the notebook,
  * and can be used to keep an up-to-date view.
  * 
- * Returns: (transfer full): a #GListModel for the notebook's children
+ * Returns: (transfer full) (attributes element-type=GtkNotebookPage): a
+ *   #GListModel for the notebook's children
  */
 GListModel *
 gtk_notebook_get_pages (GtkNotebook *notebook)
index cf5499b8d41dc5c5d4e22fb8a6df885b75a391f7..eb8357231a3fb7542c5d4dd6b6904bf3518edb11 100644 (file)
@@ -11677,7 +11677,8 @@ gtk_widget_child_observer_destroyed (gpointer widget)
  * Applications should try hard to avoid calling this function because of
  * the slowdowns.
  *
- * Returns: (transfer full): a #GListModel tracking @widget's children
+ * Returns: (transfer full) (attributes element-type=GtkWidget): a #GListModel
+ *   tracking @widget's children
  **/
 GListModel *
 gtk_widget_observe_children (GtkWidget *widget)
@@ -11749,7 +11750,8 @@ gtk_widget_controller_list_get_item (gpointer item,
  * Applications should try hard to avoid calling this function because of
  * the slowdowns.
  *
- * Returns: (transfer full): a #GListModel tracking @widget's controllers
+ * Returns: (transfer full) (attributes element-type=GtkEventController): a
+ *   #GListModel tracking @widget's controllers
  **/
 GListModel *
 gtk_widget_observe_controllers (GtkWidget *widget)